<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Robots" content="all">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,minimal-ui">

<meta name="screen-orientation" content="portrait">
<!--<meta name="full-screen" content="yes" />
<meta name="browsermode" content="application">

<meta name="x5-fullscreen" content="true">
<meta name="x5-orientation" content="portrait">-->
<!-- <meta name="x5-page-mode" content="app">-->
<!-- 强制让文档的宽度与设备的宽度保持1:1，并且文档最大的宽度比例是1.0，且不允许用户点击屏幕放大浏览-->
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- 告诉设备忽略将页面中的数字识别为电话号码 -->
<meta http-equiv="cleartype" content="on">
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta name="Keywords" content="<?php echo ($seo_keyword); ?>">
<meta name="Description" content="<?php echo ($seo_description); ?>">
<meta name="wap-font-scale" content="no">
<title>金期权</title>
<!--css-->
<link href="/git/www/yxwei/Public/Futures/new/option/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/git/www/yxwei/Public/Futures/new/option/css/propos.css" rel="stylesheet" type="text/css" />
<link href="/git/www/yxwei/Public/Futures/new/option/css/font.css" rel="stylesheet" type="text/css" />
<!--js-->
<script src="/git/www/yxwei/Public/Futures/new/option/js/jquery-2.2.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/git/www/yxwei/Public/Futures/new/option/js/touch.js" type="text/javascript" charset="utf-8"></script>
<!--<script src="/git/www/yxwei/Public/Futures/new/option/js/jquery.mobile-1.4.5.js" type="text/javascript" charset="utf-8"></script>-->
<script src="/git/www/yxwei/Public/Futures/new/option/js/Bootstrap-v3.3.5.js" type="text/javascript" charset="utf-8"></script>
<script src="/git/www/yxwei/Public/Futures/new/option/js/now.js" type="text/javascript" charset="utf-8"></script>
<script src="/git/www/yxwei/Public/Futures/new/option/js/svg.js" type="text/javascript" charset="utf-8"></script>
<!--旧-->
<link href="/git/www/yxwei/Public/Futures/css/main.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/index.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/personal.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/left.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/Swiper.min.css" rel="stylesheet">
<script type="text/javascript" src="/git/www/yxwei/Public/Futures/js/swiper.min.js"></script>


<?php echo hook('weixinshare',array('title'=>'金期权交易平台~','link'=>"$share_url",'desc'=>'我在金期权交易平台盈利，快来一起参与吧！','imgUrl'=>"$headimgurl",'type'=>'','dataUrl'=>'','success_fun'=>'callback'));?>
<script type="text/javascript">
    function callback(){
        //alert('分享回调');
         /*
         $.post("<?php echo U('Index/share');?>",{},function(data){
             if(data.status==0){
                //alert(data.mes);
             }else{
                //alert('分享成功');
             }
         },'json')
         */
    }
</script>
<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->

</head>
<body>
	<!-- 头部 -->
	<!---->
	<!-- /头部 -->
	
	<!-- 主体 -->
	
<div class="proDelBox" style="background: #FFF;">
	<p class="proRegisterpde proRegisterborderbottom" style="padding-left: 20px;">为了您的账号安全，请先进行身份验证</p>
	<p class="proRegisterpde proRegisterborderbottom" style="padding-left: 20px;">已绑定手机号:<?php echo ($mobile); ?></p>
	<p class="proRegisterpde proRegisterborderbottom reg_code clearfix" >
		<input type="text" name="code" id="code" placeholder="验证码" style="margin-left: 20px;">
		<input type="submit" class="btn click" value="获取验证码" id="GetCode" >
	</p>
	<p class="proRegisterpde proRegisterborderbottom reg_pwd clearfix reg_password">
		<input  placeholder="密码" name="password" id="password" value="" type="password" style="margin-left: 20px;">
	</p>
	<p class="proRegisterpde proRegisterborderbottom reg_repwd clearfix reg_password">
		<input  placeholder="确认密码" name="repassword" id="repassword" value="" type="password" style="margin-left: 20px;">
	</p>
	<span class="msg"></span>
	<div style="padding: 0px 20px;"><input type="button" value="确认重置" class="reg_btn"></div>
</div>
<block name="script">
<script type="text/javascript">	
	$('.reg_btn').click(function(){
		var mobile=<?php echo ($mobile); ?>;
		var password=$('#password').val();
		var repassword=$('#repassword').val();
		var code=$('#code').val();
		var url="<?php echo U('User/find_pwd');?>";
		var reg=/^1[3|4|5|7|8]\d{9}$/;
		if(reg.exec(mobile)==null) {
             $('.msg').css('display','block');
             $('.msg').html('手机号不匹配或不为空');
             return false;
        }
        if(password==''){
            $('.msg').css('display','block');
        	$('.msg').html('密码不能为空');
            return false;
        }
        if(repassword==''){
            $('.msg').css('display','block');
        	$('.msg').html('确认密码不能为空');
            return false;
        }
        if(password!=repassword){
            $('.msg').css('display','block');
        	$('.msg').html('密码不相同');
            return false;
        }
        if(code==''){
            $('.msg').css('display','block');
        	$('.msg').html('验证码不能为空');
            return false;
        }
		$.post(url,
			{
				phone:mobile,
				password:password,
				repassword:repassword,
				code:code,
			},function(data){
          		if(data.status){
          			$('.msg').css('display','block');
          			$('.msg').html(data.msg);
          			setTimeout(link_url,2000);	
          		}else{
          			$('.msg').css('display','block');
          			$('.msg').html(data.msg);
          		}
        },'json')   
        
		
	})
	
	
	$(document).ready(function(){
		// 获取验证码
		$("#GetCode").click(function(){    
				var mobile=<?php echo ($mobile); ?>;
                var reg=/^1[3|4|5|7|8]\d{9}$/;
                if (reg.exec(mobile)==null) {
                  $('.msg').html('手机号不匹配或不为空');
                	return false;
                }else{
                	$('.msg').html('');
               	}
                var url="<?php echo U('User/send_verify');?>";
                $.post(url,{mobile:mobile},function(data){
                    if(data.status){
                        setInt();
                    }else{       
                        $(".msg").html(data.msg);
                    }
                },'json')                                   
                setInt();
            })
            var count=60;
            var curCount;
            var objTime;
            function setTime(){ 
                if (curCount==0) {
                    clearInterval(objTime);
                    $('#GetCode').removeAttr('disabled');
                    $('#GetCode').css('background','#cc2a1e');
                    $('#GetCode').val('重发验证码');                    
                }else{  
                    curCount--; 
                    $('#GetCode').val(curCount + "秒后重发")
                }
            }

            function setInt() {
                curCount=count;             
                $('#GetCode').attr('disabled','true');
                $('#GetCode').css('background','#b1b1b1');
                $('#GetCode').val(curCount + "秒后重发")                                                
                objTime=setInterval(setTime,1000);
            }

	})
	function link_url(){
		var url_href="<?php echo U('Index/index');?>";;
		window.location.href=url_href;		
	}
</script>

	<!-- /主体 -->

	<!-- Left -->
	

	<!-- /Left -->

	<!-- 底部 -->
	<!---->
	<!-- /底部 -->
</body>
</html>